<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教务管理系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }

        /* 顶部导航栏 */
        .navbar {
            background-color: #4285f4;
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .nav-title {
            font-size: 24px;
            font-weight: bold;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        .nav-menu a {
            color: white;
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 4px;
            transition: background-color 0.3s;
        }

        .nav-menu a:hover {
            background-color: rgba(255,255,255,0.2);
        }

        .nav-user {
            color: #e3f2fd;
        }

        /* 主要内容区域 */
        .main-container {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }

        /* 欢迎区域 */
        .welcome-section {
            background: rgba(255,255,255,0.95);
            padding: 40px;
            border-radius: 12px;
            margin-bottom: 40px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            text-align: center;
        }

        .welcome-title {
            font-size: 36px;
            color: #333;
            margin-bottom: 20px;
        }

        .welcome-desc {
            font-size: 18px;
            color: #666;
            margin-bottom: 10px;
        }

        .welcome-note {
            font-size: 16px;
            color: #888;
        }

        /* 功能模块区域 */
        .modules-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .module-card {
            background: rgba(255,255,255,0.95);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .module-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        }

        .module-title {
            font-size: 24px;
            color: #333;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .module-desc {
            color: #666;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .module-btn {
            background: linear-gradient(45deg, #4285f4, #34a853);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
        }

        .module-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                gap: 15px;
            }

            .nav-menu {
                gap: 15px;
            }

            .welcome-title {
                font-size: 28px;
            }

            .modules-container {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <div class="nav-title">教务管理系统</div>
            <ul class="nav-menu">
                <li><a href="#" onclick="showHome()">首页</a></li>
                <li><a href="#" onclick="showStudentManagement()">学生管理</a></li>
                <li><a href="#" onclick="showAttendanceManagement()">考勤管理</a></li>
                <li><a href="#" onclick="showUserManagement()">用户管理</a></li>
            </ul>
            <div class="nav-user">admin ▼</div>
        </div>
    </nav>

    <!-- 主要内容区域 -->
    <div class="main-container">
        <!-- 欢迎区域 -->
        <div class="welcome-section">
            <h1 class="welcome-title">欢迎使用教务管理系统</h1>
            <p class="welcome-desc">本系统提供学生信息管理、考勤信息管理和系统用户管理功能。</p>
            <p class="welcome-note">请使用导航栏访问各个功能模块。</p>
        </div>

        <!-- 功能模块区域 -->
        <div class="modules-container">
            <!-- 学生管理模块 -->
            <div class="module-card">
                <h2 class="module-title">学生管理</h2>
                <p class="module-desc">管理学生基本信息，包括学号、姓名、班级等。</p>
                <button class="module-btn" onclick="showStudentManagement()">进入</button>
            </div>

            <!-- 考勤管理模块 -->
            <div class="module-card">
                <h2 class="module-title">考勤管理</h2>
                <p class="module-desc">管理学生考勤记录，包括出勤、缺勤、请假等。</p>
                <button class="module-btn" onclick="showAttendanceManagement()">进入</button>
            </div>

            <!-- 用户管理模块 -->
            <div class="module-card">
                <h2 class="module-title">用户管理</h2>
                <p class="module-desc">管理系统用户，包括用户信息和权限设置。</p>
                <button class="module-btn" onclick="showUserManagement()">进入</button>
            </div>
        </div>
    </div>

    <script>
        // 页面跳转函数
        function showHome() {
            // 刷新当前页面回到首页
            window.location.reload();
        }

        function showStudentManagement() {
            window.location.href = 'student.html';
        }

        function showAttendanceManagement() {
            window.location.href = 'attendance.html';
        }

        function showUserManagement() {
            window.location.href = 'user.html';
        }
    </script>
</body>
</html>
